<template>
  <div>
    <h2>
      事件绑定指令
    </h2>
    <p>{{age}}</p>
    <button @click="age++" >+1</button>
    <button @click='changeAge'>按钮</button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      age:20
    }
  },
  methods: {
    changeAge(){
      this.age--
      console.log(123)
    }
  },
}

</script>

<style>

</style>
